/*
 * @Author: wy
 * @Date: 2021-02-04 15:19:49
 * @LastEditTime: 2021-02-19 11:20:59
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \radio-web\src\views\radio\clip\clipColumns\AItranslateColumns.js
 */
import {
  taskSourceFormat,
  VideoStatusContants,
  downStatusFormat,
  bizTypeFormat
} from '../../../../mixin/MixinContants'
// 任务列表
export const taskColumn = [
  {
    label: 'id',
    prop: 'id',
    align: 'center'
  },
  {
    label: '封面',
    prop: 'posterUrl',
    align: 'center',
    render: (h, row) => {
      return (<img style='width:100%;height:100%;' src={row.posterUrl}/>)
    }
  },
  {
    label: '素材名称',
    prop: 'title',
    align: 'center'
  },
  {
    label: '期数ID',
    prop: 'playId',
    align: 'center'
  },
  {
    label: '来源',
    prop: 'sourceType',
    align: 'center',
    render: (h, row) => {
      const sourceType =
      row.sourceType === 0 || row.sourceType === 1
        ? row.sourceType
        : 'other'
      return (<span>{taskSourceFormat.data[sourceType].value}</span>)
    }
  },
  {
    label: '剪辑状态',
    prop: 'status',
    align: 'center',
    render: (h, row) => {
      return (<span>{VideoStatusContants.data[row.status].value}</span>)
    }
  },
  {
    label: '下载状态',
    prop: 'downStatus',
    align: 'center',
    render: (h, row) => {
      return (<span>{downStatusFormat.data[row.downStatus].value}</span>)
    }
  },
  {
    label: '创建时间',
    prop: 'addTime',
    align: 'center'
  }

]
// 媒资库选择列表
export const mediaColumn = [
  {
    label: '序号',
    prop: 'id',
    align: 'center'
  },
  {
    label: '素材名称',
    prop: 'title',
    align: 'center'
  },
  {
    label: '期数ID',
    prop: 'playId',
    align: 'center'
  },
  {
    label: '一级分类',
    prop: 'cateOneText',
    align: 'center'
  },
  {
    label: '二级分类',
    prop: 'cateTwoText',
    align: 'center'
  },
  {
    label: '关键字',
    prop: 'keywords',
    align: 'center'
  },
  {
    label: '发布人',
    prop: 'bizType',
    align: 'center',
    render: (h, row) => {
      return (<span>{bizTypeFormat.data[row.bizType].value}</span>)
    }
  },
  {
    label: '上传时间',
    prop: 'addTime',
    align: 'center'
  },
  {
    label: '节目播出时间',
    prop: 'period',
    align: 'center'
  }
]
